﻿@{
    ViewBag.Title = "_OrderLayout";
    Layout = "~/Areas/OrdersStation/Views/Shared/_Layout.cshtml";
}
@section pagescripts
{
    <script src="@Url.Resource("~/js/OrderDetails.js", "OrdersStation")"></script>
    <script>
        $(function () {
            if ('@ViewBag.OrderId'){
                OrderDetails.Init({orderId: @ViewBag.OrderId});
            }
        });
    </script>
    @RenderSection("pagescripts", false)
}
<div>
    @Html.ActionLink(Translator.Translate("back_to_cats"), "Categories", "Orders", new { orderId = ViewBag.orderId, deptId = ViewBag.deptId }, null)
    @Html.ActionLink(Translator.Translate("end_order"), "EndOrder", new { orderId = ViewBag.orderId }, null)
    @Html.ActionLink(Translator.Translate("cancel_order"), "CancelOrder", new { orderId = ViewBag.orderId }, null)
    @RenderBody()
</div>
<div>
    <aside>
        <h2>@Translator.Translate("order_details")</h2>
        <ul id="orderDetails">
        </ul>
    </aside>
</div>
